import { request } from '@umijs/max';

export type LoginParams = {
  mobile: string;
  password: string;
  clientFrom: string;
  loginMethod: string;
};
export function login(params: LoginParams) {
  console.log(params);

  return request('common/login/form', {
    method: 'get',
    params: params,
    getResponse: true,
  });
}

export function getUserInfo() {
  return request('partner/info', {
    method: 'get',
  });
}
